package com.dpiinc.TechPage.room.bean;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by hu489_000 on 2018-07-29.
 */

@Entity(tableName = "RecognizeEntity")
public class RecognizeEntity {

    /**
     * 笔记id
     */
    @PrimaryKey
    @NonNull
    private String noteId;

    @NonNull
    @ColumnInfo(name = "language")
    private String language;

    @NonNull
    @ColumnInfo(name = "recognizeResult")
    private String recognizeResult;

    @ColumnInfo(name = "modifyTime")
    private Long modifyTime;

    @ColumnInfo(name = "isNeedUpload")
    private boolean  isNeedUpload;

    @NonNull
    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(@NonNull String noteId) {
        this.noteId = noteId;
    }

    @NonNull
    public String getLanguage() {
        return language;
    }

    public void setLanguage(@NonNull String language) {
        this.language = language;
    }

    @NonNull
    public String getRecognizeResult() {
        return recognizeResult;
    }

    public void setRecognizeResult(@NonNull String recognizeResult) {
        this.recognizeResult = recognizeResult;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public boolean isNeedUpload() {
        return isNeedUpload;
    }

    public void setNeedUpload(boolean needUpload) {
        isNeedUpload = needUpload;
    }

    @Override
    public String toString() {
        return "RecognizeEntity{" +
                "noteId='" + noteId + '\'' +
                ", language='" + language + '\'' +
                ", recognizeResult='" + recognizeResult + '\'' +
                ", modifyTime=" + modifyTime +
                ", isNeedUpload=" + isNeedUpload +
                '}';
    }
}
